home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import java.beans.PropertyVetoException;
- import javax.swing.AbstractAction;
- import javax.swing.JInternalFrame;
-
- public class BasicDesktopPaneUI$NavigateAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicDesktopPaneUI this$0;
-
- protected BasicDesktopPaneUI$NavigateAction(BasicDesktopPaneUI var1) {
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- JInternalFrame[] var2 = this.this$0.desktop.getAllFrames();
- int var3 = var2.length;
- if (var3 >= 1) {
- --var3;
- }
-
- while(var2[var3].isIcon()) {
- --var3;
- if (var3 == 0) {
- break;
- }
- }
-
- this.this$0.desktopManager.activateFrame(var2[var3]);
-
- try {
- var2[var3].setSelected(true);
- } catch (PropertyVetoException var4) {
- }
-
- }
-
- public boolean isEnabled() {
- return true;
- }
- }
-